import { getSystem, openApp, getUrlQuery, parseKeyValue } from '../js/js'
import bridge from '../js/js1'
// export function 
export function shared({ image, share }) {
  console.log({ image });
  const system = getSystem()
  if (system.android) {
    bridge.dsCall('h5SharePoster', {
      image,
      share
    })
  }
  if (system.iOS) {
    bridge.iosCall('h5SharePoster', {
      image,
      share: share || true
    }, res => { })
  }
}